<template>
	<view class="content">
		{{msg}}
	</view>
</template>

<script setup>
	import {ref} from 'vue'
	let msg=ref({})
	
	
	async function getnews()
	{
		let lst = await uni.$get('https://unidemo.dcloud.net.cn/api/news')
		console.log(lst)
		msg.value=lst
	}
	getnews()
</script>

<style>
	
</style>
